Skip to content

Fix IS_NULLABLE in DatabaseMetaData.getColumns#665

Merged
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:dbmeta_is_nullable
Apr 19, 2026
Merged

Fix IS_NULLABLE in DatabaseMetaData.getColumns#665
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:dbmeta_is_nullable

Conversation

@staticlibs
Copy link
Copy Markdown
Collaborator

This PR fixes the output type and value of the IS_NULLABLE column of the DatabaseMetaData#getColumns() method (ref).

It was inadvertently broken by #639 that changed the underlying query to use duckdb_columns() instead of information_schema.columns view, that returns almost the same columns, but not exactly (impl).

Fixes: #664

This PR fixes the output type and value of the `IS_NULLABLE` column of
the `DatabaseMetaData#getColumns()` method ([ref](https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html#getColumns-java.lang.String-java.lang.String-java.lang.String-java.lang.String-)).

It was inadvertently broken by duckdb#639 that changed the underlying query to
use `duckdb_columns()` instead of `information_schema.columns` view,
that returns almost the same columns, but not exactly ([impl](https://github.com/duckdb/duckdb/blob/e64b98f66712b9674897bb27f7f417e5e88fb4be/src/catalog/default/default_views.cpp#L51)).

Fixes: duckdb#664
staticlibs added a commit to staticlibs/duckdb-java that referenced this pull request Apr 19, 2026
This is a backport of the PR duckdb#665 to v1.5-variegata stable branch.

This PR fixes the output type and value of the `IS_NULLABLE` column of
the `DatabaseMetaData#getColumns()` method ([ref](https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html#getColumns-java.lang.String-java.lang.String-java.lang.String-java.lang.String-)).

It was inadvertently broken by duckdb#639 that changed the underlying query to
use `duckdb_columns()` instead of `information_schema.columns` view,
that returns almost the same columns, but not exactly ([impl](https://github.com/duckdb/duckdb/blob/e64b98f66712b9674897bb27f7f417e5e88fb4be/src/catalog/default/default_views.cpp#L51)).

Fixes: duckdb#664
@staticlibs staticlibs merged commit 8c4fea3 into duckdb:main Apr 19, 2026
14 checks passed
staticlibs added a commit that referenced this pull request Apr 19, 2026
This is a backport of the PR #665 to v1.5-variegata stable branch.

This PR fixes the output type and value of the `IS_NULLABLE` column of
the `DatabaseMetaData#getColumns()` method ([ref](https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html#getColumns-java.lang.String-java.lang.String-java.lang.String-java.lang.String-)).

It was inadvertently broken by #639 that changed the underlying query to
use `duckdb_columns()` instead of `information_schema.columns` view,
that returns almost the same columns, but not exactly ([impl](https://github.com/duckdb/duckdb/blob/e64b98f66712b9674897bb27f7f417e5e88fb4be/src/catalog/default/default_views.cpp#L51)).

Fixes: #664
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: DatabaseMetaData.getColumns returns IS_NULLABLE="true"/"false" instead of JDBC spec "YES"/"NO"

1 participant